//package com.focus.base.module.support.redis;
//
//import com.focus.base.common.util.LocalStrUtil;
//import org.redisson.config.Config;
//import org.springframework.stereotype.Component;
//
///**
// * redission对于password 为空处理有问题，重新设置下
// */
//@Component
//public class RedissonPasswordConfigurationCustomizer implements RedissonAutoConfigurationCustomizer {
//    @Override
//    public void customize(Config configuration) {
//        if (configuration.isSingleConfig() && LocalStrUtil.isEmpty(configuration.useSingleServer().getPassword())) {
//            configuration.useSingleServer().setPassword(null);
//        }
//
//        if (configuration.isClusterConfig() && LocalStrUtil.isEmpty(configuration.useClusterServers().getPassword())) {
//            configuration.useClusterServers().setPassword(null);
//        }
//        if (configuration.isSentinelConfig() && LocalStrUtil.isEmpty(configuration.useSentinelServers().getPassword())) {
//            configuration.useSentinelServers().setPassword(null);
//        }
//    }
//}
